//
//  CommunityLinkServer.h
//  WeCommunity
//
//  Created by mac on 2017/8/9.
//  Copyright © 2017年 lzy. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CommunityLinkServer : NSObject

+(CommunityLinkServer *)shared;

#pragma mark - 发布社区数据
-(void)postCommunityWithModel:(id)model
                     complete:(void(^)(BOOL success, NSString *error))complete;

#pragma mark - 获取社区数据
-(void)loadCommunityLinkDataWithType:(NSInteger)type
                            loadDate:(NSDate *)loadDate
                           loadCount:(NSInteger)loadCount
                            complete:(void(^)(BOOL success, NSString *error, NSArray *dataArray))complete;

#pragma mark - 点赞
-(void)likeOrUnLikeDataWithCommunity:(id)model
                          complete:(void(^)(BOOL success, NSString *error, id resultModel))complete;

#pragma mark - 查询某一动态数据
-(void)findCommunityDataWithObjectId:(NSString *)objectId
                          complete:(void(^)(BOOL success,NSString *error, id resultModel))complete;

@end
